'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	const db=uniCloud.database()
	const novelrecords=db.collection("db_novelrecords")
	//返回数据给客户端
	let {user_id,book_id} =event
	console.log(user_id,book_id)
	return await novelrecords.where({
		user_id,
		book_id
	}).get()
};
